package grad.nxu.recruitsystem.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import grad.nxu.recruitsystem.domain.Position;
import grad.nxu.recruitsystem.vo.PositionVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author HAPPY
 * @description 针对表【position】的数据库操作Mapper
 * @createDate 2023-03-10 18:07:37
 * @Entity grad.nxu.recruitsystem.domain.Position
 */
@Mapper
public interface PositionMapper extends BaseMapper<Position> {
    /**
     * 分页获取所有岗位信息
     *
     * @param pageSize 每页有多少条
     * @param offset   从第几条开始
     * @return 返回查询到的岗位信息
     */
    List<PositionVO> getAll(Integer pageSize, Integer offset);
    /**
     * @Description: 添加岗位
     * @Author: shang_kui EnglishName:Jack
     * @CreateTime: 2023/3/25 18:54
     * @param: position
     * @return: grad.nxu.recruitsystem.domain.Position
     */
    boolean insertPosition(Position position);
}




